<template>
  <el-container style="height:100vh;">
    <el-aside
      width="200px"
      style="width: 200px;height:100vh;background-color: rgb(238, 241, 246);"
    >
      <el-menu
        :default-openeds="['1', '3']"
        style="text-align: left;"
        router
      >
        <el-submenu index="1">
          <template slot="title"><i class="el-icon-s-home"></i>主页</template>
          <el-menu-item-group>
            <el-menu-item index="1-1">选项1</el-menu-item>
            <el-menu-item index="1-2">选项2</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="2">
          <template slot="title"><i class="el-icon-shopping-cart-1"></i>商品管理</template>
          <el-menu-item-group>
            <el-menu-item index="2-1">选项1</el-menu-item>
            <el-menu-item index="2-2">选项2</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-menu-item index="3">
          <i class="el-icon-notebook-2"></i>
          <span slot="title">售出记录</span>
        </el-menu-item>
        <el-submenu index="4">
          <template slot="title"><i class="el-icon-s-custom"></i>个人信息</template>
          <el-menu-item-group>
            <el-menu-item index="/admin/user">用户管理</el-menu-item>
            <el-menu-item index="/admin/adminuser">管理员</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
      </el-menu>
    </el-aside>

    <el-container>
      <el-header style="text-align: right; font-size: 12px">
        <i
          class="el-icon-user-solid"
          style="margin-right: 15px;font-size:16px"
        ></i>
        <span style="font-size:14px">超级管理员</span>
      </el-header>
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>
<script>
export default {
  data() {
    const item = {
      date: '2016-05-02',
      name: '王小虎',
      address: '上海市普陀区金沙江路 1518 弄'
    }
    return {
      tableData: Array(20).fill(item)
    }
  },
  methods: {
  }
}
</script>
<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
}
#nav {
  padding: 0px !important;
}
.el-header {
  background-color: #b3c0d1;
  color: #333;
  line-height: 60px;
}

.el-aside {
  color: #333;
}
</style>
